import type { ProColumns } from '@ant-design/pro-components';

export const defaultColumns: ProColumns<API.RuleListItem>[] = [
  {
    title: '文章ID',
    dataIndex: 'id',
    key: 'id',
    width: 90,
  },
  {
    title: '文章名称',
    dataIndex: 'title',
    width: 180,
  },
  {
    title: '文章描述',
    dataIndex: 'description',
    width: 240,
    search: false,
  },
  {
    title: '创建时间',
    dataIndex: 'createdTime',
    search: false,
    width: 160,
  },
  {
    title: '创建人',
    dataIndex: 'createdByAccount',
    search: false,
    width: 150,
  },
  {
    title: '最后更新时间',
    dataIndex: 'updatedTime',
    search: false,
    width: 160,
  },
  {
    title: '操作',
    dataIndex: 'operate',
    fixed: 'right',
    width: 150,
    search: false,
  },
];